Ext.define('Admin.view.supplier.SupplierForm', {
    extend: 'Admin.ux.form.FormPanel',
    xtype: 'supplier-form',
    requires: ['Ext.tab.Panel'],
    controller: 'supplier',
    items: [{
        xtype: 'tabpanel',
        items: [{
            itemId: 'unit',
            title: '单位信息',
            items: [{
                xtype: 'form',
                layout: 'column',
                items: [{
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '公司名称',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '研究所测试',
                    beforeLabelTextTpl: '<span style="color:red;font-weight:bold">*</span>'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '联系人',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '测试',
                    beforeLabelTextTpl: '<span style="color:red;font-weight:bold">*</span>'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '职务',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '123'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '固定电话',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '1231'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '手机号',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '13233333333'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '电子邮箱',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '331336290@qq.com'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '联系人传真',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '12412'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '工商登记号',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '3123123',
                    beforeLabelTextTpl: '<span style="color:red;font-weight:bold">*</span>'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '纳税人识别号',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '3123123123',
                    beforeLabelTextTpl: '<span style="color:red;font-weight:bold">*</span>'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '注册地址',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '注册地址'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '法人代表姓名',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '法人代表姓名'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '注册资本',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '123.00'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '公司类型',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '123'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '通讯地址',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '124112'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '邮政编码',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '4124'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '单位成立日期',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '2018/11/3'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '营业期限',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '2018/11/3'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '经营范围',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: ''
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '所属行业',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: ''
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '银行账号',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '124124',
                    beforeLabelTextTpl: '<span style="color:red;font-weight:bold">*</span>'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '开户行',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: '123123123',
                    beforeLabelTextTpl: '<span style="color:red;font-weight:bold">*</span>'
                }, {
                    columnWidth: 0.5,
                    margin: 6,
                    xtype: 'textfield',
                    name: 'name',
                    fieldLabel: '银行注册区域',
                    readOnly: true,
                    labelWidth: 160,
                    labelAlign: 'right',
                    value: ''
                }]
            }]
        }, {
            itemId: 'aptitude',
            title: '资质信息',
            height: '100%',
            html: '<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1546528706952&di=587a760dab3f27be8395e8fcf9ef327f&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201603%2F05%2F20160305105144_4Br5u.thumb.700_0.jpeg">'
        }, {
            itemId: "audit",
            title: '审核意见',
            items: [{
                xtype: 'fieldset',
                title: '修改意见',
                collapsible: true,
                items: [{
                    xtype: 'form',
                    layout: 'column',
                    items: [{
                        xtype: 'textarea',
                        height: 80,
                        labelWidth: 160,
                        name: 'err_text',
                        labelSeparator: '：',
                        labelAlign: 'right',
                        fieldLabel: '我的意见',
                        columnWidth: 1.00,
                    }]

                }]
            }, {
                xtype: 'form',
                layout: 'column',
                items: [{
                    columnWidth: 1,
                    xtype: 'textfield',

                    name: 'name',
                    readOnly: true,
                    value: '16分钟前 采购部门 (采购部管理员)',
                }]

            }, {
                xtype: 'form',
                layout: 'column',
                items: [{
                    xtype: 'textarea',
                    height: 80,
                    labelWidth: 160,
                    name: 'err_text',
                    labelAlign: 'right',
                    columnWidth: 1.00,
                    readOnly: true,
                    margin: '10 0 0 0'
                }]
            }]
        }]
    }]
});
